<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\VideoImgs
 *
 * @property int $id 图片的标识
 * @property int $file_id 文件标识
 * @property string|null $img_name 图片名
 * @property string|null $img_type 图片类型
 * @property string|null $file_md5 图片类型
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\VideoImgs onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereFileId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereFileMd5($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereImgName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereImgType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\VideoImgs withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\VideoImgs withoutTrashed()
 * @mixin \Eloquent
 * @property int $is_active 产业
 * @method static \Illuminate\Database\Eloquent\Builder|\App\VideoImgs whereIsActive($value)
 * @property-read \App\Files $files
 */
class VideoImgs extends Model
{
    protected $table="video_imgs";
    use SoftDeletes;

    public function files(){
        return $this->belongsTo('App\Files','file_id');
    }
}